#主动技能【定位坐标】
#传送优化
effect give @s absorption 10 0 true
#技能效果：释放时对6格范围内敌人施加<缴械>3s
scoreboard players set @a[distance=0.1..6,gamemode=!spectator,scores={EFDisarm=0}] EFDisarm 60
scoreboard players remove @a[distance=0.1..6,gamemode=!spectator,scores={EFDisarm=..-1}] EFDisarm 60


#技能效果：若都存在，则获得伤害吸收III 10s
execute as @e[type=armor_stand,tag=zuoxuZuobiao] if score @s DataID = @p[tag=zuoxu] DataID run effect give @p[tag=zuoxu] absorption 10 2 true
execute as @e[type=armor_stand,tag=zuoxuZuobiao] if score @s DataID = @p[tag=zuoxu] DataID at @s run function nw:yingxiong/2yingxiong/03zuoxu/skill/03zuobiaokill

#技能效果：生成[坐标]
summon minecraft:armor_stand ~ ~1 ~ {Tags:[zuoxuZuobiao],Marker:1b,CustomName:'[{"text":"坐标","color":"green","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}]',CustomNameVisible:1b,Invisible:1,ShowArms:1,NoGravity:1b,DisabledSlots:65793,Rotation:[0f]}
scoreboard players operation @e[type=armor_stand,tag=zuoxuZuobiao,distance=0..2] DataID = @s DataID
# tellraw @s [{"text":"[坐标]系统：已生成 ","color":"white","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"[坐标]","color":"dark_red","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}]

# #由于是末影珍珠施法：优化效果
# tp @s ~ ~5 ~
# effect give @s levitation 1 0 true

tellraw @a [{"selector":"@s","color":"gold","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"：释放技能","color":"blue","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"【定位坐标】","color":"dark_red","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false},{"text":"—左旭","color":"gold","bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false}]

scoreboard players set @s skCDPearl 12
scoreboard players set @s skPearl 0